package com.scau.RBAC.exception;

/**
 * 错误码常量类，定义系统中使用的所有错误码
 */
public class ErrorCode {
    // 通用错误码
    public static final String SUCCESS = "000000";
    public static final String SYSTEM_ERROR = "999999";
    public static final String PARAM_ERROR = "100001";

    // 用户相关错误码
    public static final String USER_NOT_FOUND = "200001";
    public static final String USERNAME_EXISTS = "200002";
    public static final String INVALID_CREDENTIALS = "200003";
    public static final String USER_DISABLED = "200004";

    // 角色相关错误码
    public static final String ROLE_NOT_FOUND = "300001";
    public static final String ROLE_CODE_EXISTS = "300002";
    public static final String ROLE_IN_USE = "300003";

    // 权限相关错误码
    public static final String PERMISSION_NOT_FOUND = "400001";
    public static final String PERMISSION_CODE_EXISTS = "400002";
    public static final String NO_PERMISSION = "400003";

    // 外部服务相关错误码
    public static final String EXTERNAL_SERVICE_ERROR = "500001";
    public static final String EXTERNAL_SERVICE_TIMEOUT = "500002";
    public static final String EXTERNAL_SERVICE_UNAVAILABLE = "500003";
}